#ifndef CORE_H
#define CORE_H


#define Window_pox_x 60
#define Window_pos_y 36
#define Window_size_w 360
#define Window_size_h 360


// int adc_times(int n);
// void work(void *arg);
void touch_manager(void*arg);
float temprature_of_body(float x);
float ad_times(int n);
// void beep(float sec);

void clear_window(void);
// void print(char *msg);
// void putcs(char m);

// void idle_fun(void);
float millisf(void);
//extern int screen_lock;

#define sendf(f,...) sprintf(tx,f,__VA_ARGS__);sends(tx)
#define millis HAL_GetTick


extern Pipe UART1Tx_pipe, UART1Rx_pipe;
extern Pipe UART2Tx_pipe, UART2Rx_pipe;
extern Pipe UART3Tx_pipe, UART3Rx_pipe;

int gpio_cmd(int nargin, char **arg);
int echo_to_screen(int n, char *arg[]);
int blink(void);
float temperature_of(float x);
void start_spi_rec(void);
void stop_spi(void);

void beep(float freq, float sec);
extern int screen_lock;
extern int video_mode;

void*UART_TX_Pipe_line(void*arg, char*d, int n);
void UART_RX_pipe_release_date(Pipe p, char c);

int cmd_uart_change_bound_rate(int n, char *arg[]);

#endif  
